package com.yfux.springbootmybatisquickstart.mapper;

import com.yfux.springbootmybatisquickstart.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {
//    @Select("select * from emp where id=#{id}")
//    Emp getById(Integer id);

    Emp getById(Integer id);

    List<Emp> list(String name, Integer gender, LocalDate begin, LocalDate end);
}
